Skip to content

feat: Forward totp.key to screen state#1336

Open
tomerlichtash wants to merge 7 commits intomainfrom
fix-13800
Open

feat: Forward totp.key to screen state#1336
tomerlichtash wants to merge 7 commits intomainfrom
fix-13800

Conversation

@tomerlichtash
Copy link
Member

@tomerlichtash tomerlichtash commented Feb 18, 2026

Related Issues

Related https://github.com/descope/etc/issues/13800

Related PRs

branch PR
service a PR Link to PR
service b PR Link to PR

Description

A few sentences describing the overall goals of the pull request's commits.

Must

  • Tests
  • Documentation (if applicable)

@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
access-key-management-widget Ready Ready Preview, Comment Feb 18, 2026 4:48pm
audit-management-widget Ready Ready Preview, Comment Feb 18, 2026 4:48pm
role-management-widget Ready Ready Preview, Comment Feb 18, 2026 4:48pm
user-management-widget Ready Ready Preview, Comment Feb 18, 2026 4:48pm
user-profile-widget Ready Ready Preview, Comment Feb 18, 2026 4:48pm

Request Review

@nx-cloud
Copy link

nx-cloud bot commented Feb 18, 2026

View your CI Pipeline Execution ↗ for commit 9fcd9f5

Command Status Duration Result
nx affected --target test:e2e ✅ Succeeded <1s View ↗
nx affected --target test ✅ Succeeded 31s View ↗
nx affected --target lint --fix=true ✅ Succeeded <1s View ↗
nx affected --target build ✅ Succeeded 2s View ↗
nx affected --target licenseCheck ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-18 17:20:30 UTC

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for forwarding the TOTP key value from the screen state to screen inputs, enabling forms to access and display the TOTP secret key in addition to the existing QR code image and provisioning URL.

Changes:

  • Extends the ScreenState type to include an optional key field in the totp object
  • Updates updateScreenFromScreenState to map totp.key from screen state to an input field named totp.key

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/sdks/web-component/src/lib/types.ts Adds optional key field to the totp object in ScreenState interface
packages/sdks/web-component/src/lib/helpers/templates.ts Updates updateScreenFromScreenState to forward totp.key to screen inputs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

replaceElementInputs(baseEle, screenState?.inputs);
const screenInputs = {
...screenState?.inputs,
...(screenState?.totp?.key ? { 'totp.key': screenState.totp.key } : {}),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see we are passing the other totp keys here,
so why do we need special treatment for this one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we want to support the population of this one in a read-only input TOTP Key editor component.

@tomerlichtash tomerlichtash requested a review from nirgur February 19, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants